<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/static/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
 <meta name="viewport" content="width=device-width" />
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
 <title>后台管理--角色列表</title>

 <link href="${ctxStatic}/layui/css/layui.css" rel="stylesheet" />
 <link href="${ctxStatic}/css/kpiui.css" rel="stylesheet" />
 <script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0" type="text/javascript"></script>
 <script src="${ctxStatic}/layui/layui.all.js"  type="text/javascript"></script>
 <script src="${ctxStatic}/js/sys/role.js"  type="text/javascript"></script>
</head>
<body>
 <div class="currentnav"><span class="tiao"></span><span class="navtitle">角色管理</span></div>
 <div class="tabregion">
 <div class="layui-tab layui-tab-brief" lay-filter="tabcontent">
  <ul class="layui-tab-title">
    <li lay-id="1"  class="layui-this">角色列表</li>
    <li lay-id="2">添加/编辑</li>
  </ul>
  <div class="layui-tab-content" style="height: 100px;">
    <div class="layui-tab-item layui-show">
      <div class="serchcontent">
	   <div class="search">
	  角色名称：<input type="text" class="text" id="rolename"/>
	  <!-- <input type="button" class="button" value="查询" id="btnquery" onclick="vRole.searchtable()"  />
	  <input type="button" class="button" value="添加" onclick="vRole.OpTab(2)" />-->
	  <button type="button" class="button" id="btnquery" onclick="vRole.searchtable()"><img src="${ctxStatic}/images/button/chaxun.png" style="width:20px">查询</button>
	  <button type="button" class="button" onclick="vRole.OpTab(2)"><img src="${ctxStatic}/images/button/add.png" >添加</button>
	 </div>
	 </div>
	
	 <div class="content">
	   <div id="list" class="list" lay-filter="list"></div>
	   <script type="text/html" id="operate">
        <!--<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>-->
         {{#  if(d.roleid !=${loginroleid}&&d.usercount<=0&&d.menucount<=0&&${usertype}==3){ }}
          <img class="btn-img" src="${ctxStatic}/images/index/btn_edit.png" lay-event="edit" alt="编辑" title="编辑">
          <img class="btn-img" src="${ctxStatic}/images/index/btn_delete.png" lay-event="del" alt="删除" title="删除">
         {{#  } }}

         {{#  if(d.roleid !=${loginroleid}){ }}
         <img class="btn-img" src="${ctxStatic}/images/button/setmenu.png" lay-event="setrights" alt="设置权限" title="设置权限">
         {{#  } }}
      </script>
	 </div>
    </div>
    <div class="layui-tab-item">
     <div class="form-region">
       <form class="layui-form" id="formedit" name="formedit" action="add_role" method="post" target="d41d8cd98f00b204e9800998ecf8427e">
         <iframe name="d41d8cd98f00b204e9800998ecf8427e" src="about:blank" style="display:none;"></iframe>
         <div style="width:60%;margin:0 auto">
          <table>
           <tr>
            <td class="td_right">角色名称：</td>
            <td class="td_left">
             <input type="text" id="rolename" name="rolename" lay-verify="required" autocomplete="off" placeholder="请输入角色名称" class="layui-input" >
            </td>
           </tr>
           <!-- <tr>
            <td class="td_right">类型：</td>
            <td class="td_left">
              <input type="radio" name="roletype" value="0" title="普通民警" checked="">
              <input type="radio" name="roletype" value="1" title="部门管理员（部门领导）">
              <input type="radio" name="roletype" value="2" title="系统管理员" >
            </td> -->
           </tr>
           <tr>
            <td class="td_right">描述：</td>
            <td class="td_left">
              <textarea class="layui-textarea"  name="remark" ></textarea>
            </td>
           </tr>
           <tr>
            <td class="td_center" colspan="2">
              <button class="button" lay-submit="" lay-filter="demo1" id="btnsave">保存</button>
		      <input type="button" value="返回列表" class="button"  onclick="vRole.OpTab(1)"/>
            </td>
           </tr>
          </table>
        
		 
		  
		 
</div>
         <input type="hidden" name="roleid" value="0" >
         
       </form>
    </div>
  
     </div>
    
    
  </div>
</div>
 </div>
 
  <input type="hidden" id="usertype" value="${usertype }" >
 

</body>
</html>